﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CtpGglTranslate.Ggl;

namespace CtpGglTranslate.Event
{
    /// <summary>
    ///  EventHandler to handle google translated event
    /// </summary>
    /// <param name="sender">sender</param>
    /// <param name="e">event agrument</param>
    public delegate void GglTranslateEventHandler(Object sender, GglTranslateEventAgrs e);

    /// <summary>
    /// Event agrument for google translated event
    /// </summary>
    public class GglTranslateEventAgrs : EventArgs
    {
        /// <summary>
        /// construtor for GglTranslateEventAgrs
        /// </summary>
        /// <param name="post">translated post</param>
        public GglTranslateEventAgrs(Translator.TranslatedPost post)
        {
            this.post = post;
        }

        private Translator.TranslatedPost post;

        /// <summary>
        /// Getter
        /// </summary>
        public Translator.TranslatedPost TranslatedPost { get { return this.post;} }
    }
}
